package com.pi.shisan.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pi.shisan.service.domain.LedClockHoliday;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ClockHolidayMapper extends BaseMapper<LedClockHoliday> {

    @Select("select * from led_clock_holiday where dayint >= #{dayint} and day_type = #{dayType} order by dayint asc")
    List<LedClockHoliday> selectNext(@Param("dayint") Integer dayint, @Param("dayType") Integer dayType);


    @Select("select id from led_clock_holiday where clk_year = #{year} limit 1")
    Long checkHasYearInfo(@Param("year") Integer year);
}
